package com.morgankelly.po;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class BlogComment extends BasePO {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
    
    @Persistent
	private String createTime;
    
    @Persistent
	private String content;
    
	@Persistent(defaultFetchGroup = "true")
	private Key accountKey;
	@Persistent(defaultFetchGroup = "true")
	private Key blogKey;
	
	private Long accountID;
	private Long blogID;
	
	public BlogComment() {
		
	}
    
	public BlogComment(String createTime, String content) {
		this.createTime = createTime;
		this.content = content;
	}

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Key getAccountKey() {
		return accountKey;
	}

	public void setAccountKey(Key accountKey) {
		this.accountKey = accountKey;
	}
	
	

	public Long getAccountID() {
		return accountID;
	}

	public void setAccountID(Long accountID) {
		this.accountID = accountID;
	}

	public Long getBlogID() {
		return blogID;
	}

	public void setBlogID(Long blogID) {
		this.blogID = blogID;
	}

	public Key getBlogKey() {
		return blogKey;
	}

	public void setBlogKey(Key blogKey) {
		this.blogKey = blogKey;
	}
}
